import request from '@/utils/request'
//sn码查询license码
export function licenseRecordQuerySn(query) {
  return request({
    url: '/licensekey/licensekey/querySn',
    method: 'get',
    params: query
  })
}

//写入license码让后台做记录
export function writeNumber(data) {
  return request({
    url: '/licensekey/write/add',
    method: 'post',
	data
  })
}
/* export function writeNumber() {
  return request({
    url: '/licensekey/licensekey/writeNumber',
    method: 'post',
  })
} */
//查询sn码使用详情
export function writeList(query) {
  return request({
    url: '/licensekey/write/list',
    method: 'get',
	params: query
  })
}